//
//  HLUserAccount.h
//  weibo-OC
//
//  Created by 黄力 on 15/12/15.
//  Copyright © 2015年 HLTest. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HLUserAccount : NSObject<NSCoding>

@property (nonatomic,copy) NSString *access_token;
@property (nonatomic,assign) double expires_in;
@property (nonatomic,copy) NSString *uid;
@property (nonatomic,copy) NSString *name;
@property (nonatomic,copy) NSString *avatar_large;
//记录token的过期时间
@property (nonatomic,strong) NSDate *expires_date;

//利用kvc进行字典转模型
+ (instancetype)userAccountWithDictionary:(NSDictionary *)dic;

//保存用户信息到沙盒
- (void)saveUserAccountToSanbox;
//取出用户信息
+ (instancetype)getUserAccount;

@end
